package com.lingjtx.common.influx.annotation;

import com.lingjtx.common.influx.factory.InfluxMapperScannerRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(InfluxMapperScannerRegistrar.class)
public @interface EnableInfluxMapperScan {
    String[] basePackages(); // Mapper 接口所在的包路径

    String mapperLocations() default "classpath*:influx-mapper/**/*.xml"; // XML 文件路径
}
